﻿using ProgrammingSchool.DataContext;
using Repository.Core.BaseRepository;
using ProgrammingSchool.Repository.Interfaces;

namespace ProgrammingSchool.Repository.Repositories
{
    public class UsersRepository : BaseRepository<T_User>, IUsersRepository
    {
        public UsersRepository()
            : base(new TablesDataContext())
        {
        }

        protected override void UpdateItem(T_User oldItem, T_User item)
        {
            item.Login = oldItem.Login;
            item.Password = oldItem.Password;
        }
    }
}
